package com.ebelter.btlibrary.btble.ble.model;

import com.ebelter.btlibrary.btble.util.BytesUtils;

import java.util.Arrays;

/**
 *  蓝牙请求
 * Created by Sergio Pan on 2017/12/26.
 */

public class BtRequest {
    private String desc;
    private byte[] data;

    public BtRequest() {
    }

    public BtRequest(String desc, byte[] data) {
        this.desc = desc;
        this.data = data;
    }

    public String getAck() {
        return desc;
    }

    public void setAck(String desc) {
        this.desc = desc;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BtRequest{" +
                "desc='" + desc + '\'' +
                ", data=" + BytesUtils.bytes2HexStr(data) +
                '}';
    }
}
